<?php
	require_once "header.php";

		
	$cFilter = new CFilter;
	
	
	if(isset($_POST['btn_ok']) && isset ($_POST['hItemAction']))
	{
		
		require_once "trackingModify.php";
		$action = $_POST['hItemAction'];
	
		if($action === "add")
		{
			require_once "processItems_Add.php"	;			
		}

		if($action === "del")
		{		
			require_once "processItems_Del.php";			
		}
		
		if($action === "edi")
		{			
			require_once "processItems_Edit.php";					
			/*echo '<script language="javascript">window.location.href="main.php?jmp=items&to=idbview"</script>';*/   			
		}
	}
	else
	{
		 if(isset($_POST['btn_cancel']))
		 {
		 	echo '<script language="javascript">window.location.href="main.php?jmp=items&to=idbview"</script>';
		 }
		 else
		 {
			 echo '<script language="javascript">window.location.href="main.php"</script>';
		  }
	}

?>